home *** CD-ROM | disk | FTP | other *** search
/ Java Internet Programming Reference Guide / Java Internet Programming Reference Guide.iso / autorun / java.dir / 00134_12f.txt < prev    next >
Encoding:
Text File  |  1996-01-12  |  4.7 KB  |  801 lines

  1. sup method
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9. Causes the calling string object to be displayed as a superscript by surrounding it with HTML superscript tags,  <SUP>... <SUP>
  10.  
  11.  
  12.  
  13.  
  14.  
  15. Syntax
  16.  
  17.  
  18.  
  19.  
  20. sup()
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. Description
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. xxx Description to be supplied.
  35.  
  36.  
  37.  
  38.  
  39.  
  40. Applies to
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. string
  48.  
  49.  
  50.  
  51.  
  52.  
  53. Examples
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. xxx Examples to be supplied.
  61.  
  62.  
  63.  
  64.  
  65.  
  66. See also
  67.  
  68.  
  69.  
  70.  
  71. sub method
  72.  
  73.  
  74. ------------------------------------------------------------------------
  75.  
  76.  
  77.  
  78.  
  79.  
  80. tan method
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88. Returns the tangent of its argument. The argument is in radians.
  89.  
  90.  
  91.  
  92.  
  93.  
  94. Syntax
  95.  
  96.  
  97.  
  98.  
  99. tan(arg)
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106. Applies to
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. Math
  114.  
  115.  
  116.  
  117.  
  118.  
  119. Examples
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126. xxx Examples to be supplied.
  127.  
  128.  
  129.  
  130.  
  131.  
  132. See also
  133.  
  134.  
  135.  
  136.  
  137. acos, asin, atan, cos, sin methods
  138.  
  139.  
  140.  
  141. ------------------------------------------------------------------------
  142.  
  143.  
  144.  
  145.  
  146.  
  147. toGMTString method
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157. Syntax
  158.  
  159.  
  160.  
  161.  
  162. dateObj.toGMTString()
  163.  
  164.  
  165.  
  166. where dateObj is a date object.
  167.  
  168.  
  169.  
  170.  
  171.  
  172. Description
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180. Converts a date to a String, using the Internet GMT conventions. 
  181.  
  182.  
  183.  
  184.  
  185.  
  186. Applies to
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193. Date
  194.  
  195.  
  196.  
  197.  
  198.  
  199. Examples
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206. today.toGMTString()
  207.  
  208.  
  209.  
  210.  
  211.  
  212. If today is a date object, then toGMTString would convert the date to
  213. GMT (UTC) using the operating system's time zone offset, and return a string
  214. value in the following form:
  215.  
  216.  
  217. Mon, 18 Dec 1995 17:28:35 GMT
  218.  
  219.  
  220.  
  221. ------------------------------------------------------------------------
  222.  
  223.  
  224.  
  225.  
  226.  
  227. toLocaleString method
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237. Syntax
  238.  
  239.  
  240.  
  241.  
  242. dateObj.toLocaleString()
  243.  
  244.  
  245.  
  246. where dateObj is a date object.
  247.  
  248.  
  249.  
  250.  
  251.  
  252. Description
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260. Converts a date to a String, using the locale conventions. 
  261.  
  262.  
  263.  
  264.  
  265.  
  266. Applies to
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273. Date
  274.  
  275.  
  276.  
  277.  
  278.  
  279. Examples
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286. today.toLocaleString()
  287.  
  288.  
  289.  
  290.  
  291.  
  292. If today is a date object, then toLocaleString will return a string value
  293. in the following form:
  294.  
  295.  
  296. 12/18/95 17:28:35
  297.  
  298.  
  299.  
  300. ------------------------------------------------------------------------
  301.  
  302.  
  303.  
  304.  
  305.  
  306. toLowerCase method
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314. The toLowerCase method of string objects converts the string to all upper case.
  315.  
  316.  
  317.  
  318.  
  319.  
  320. Syntax
  321.  
  322.  
  323.  
  324.  
  325. toLowerCase()
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332. Description
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339. xxx Description to be supplied.
  340.  
  341.  
  342.  
  343.  
  344.  
  345. Applies to
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352. string
  353.  
  354.  
  355.  
  356.  
  357.  
  358. Examples
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365. For example, "ALPHABET"toLowerCase yields "alphabet"
  366.  
  367.  
  368.  
  369.  
  370.  
  371. See also
  372.  
  373.  
  374.  
  375.  
  376. toUpperCase method
  377.  
  378.  
  379. ------------------------------------------------------------------------
  380.  
  381.  
  382.  
  383.  
  384.  
  385. toString method
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393. For location, returns location.href, so you can use location as a string 
  394. without typing "href" For Date, converts a date to a string.
  395.  
  396.  
  397.  
  398.  
  399.  
  400. Syntax
  401.  
  402.  
  403.  
  404.  
  405. toString()
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412. Description
  413.  
  414.  
  415.  
  416.  
  417.  
  418.  
  419. xxx Description to be supplied.
  420.  
  421.  
  422.  
  423.  
  424.  
  425. Applies to
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432. location, Date methods
  433.  
  434.  
  435.  
  436.  
  437.  
  438. Examples
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446. Here is an example of using toString with a date object, assuming theBigDay is a date object:
  447.  
  448.  
  449. theBigDay.toString()
  450.  
  451.  
  452.  
  453.  
  454.  
  455. More Examples to be supplied.
  456.  
  457.  
  458. ------------------------------------------------------------------------
  459.  
  460.  
  461.  
  462.  
  463.  
  464. toUpperCase method
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472. The toUpperCase method of string objects converts the string to all upper case.
  473.  
  474.  
  475.  
  476.  
  477.  
  478. Syntax
  479.  
  480.  
  481.  
  482.  
  483. toUpperCase()
  484.  
  485.  
  486.  
  487.  
  488.  
  489.  
  490. Description
  491.  
  492.  
  493.  
  494.  
  495.  
  496.  
  497. xxx Description to be supplied.
  498.  
  499.  
  500.  
  501.  
  502.  
  503. Applies to
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510. string
  511.  
  512.  
  513.  
  514.  
  515.  
  516. Examples
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523. For example, "alphabet"toUpperCase yields "ALPHABET"
  524.  
  525.  
  526.  
  527.  
  528.  
  529. See also
  530.  
  531.  
  532.  
  533.  
  534. toLowerCase method
  535.  
  536.  
  537.  
  538. ------------------------------------------------------------------------
  539.  
  540.  
  541.  
  542.  
  543.  
  544. UTC method
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554. Syntax
  555.  
  556.  
  557.  
  558.  
  559. Date.UTC(year, month, mday [, hrs] [, min] [, sec])
  560.  
  561.  
  562.  
  563.  
  564.  
  565. Description
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573. UTC takes comma-delimited date parameters and returns the number
  574. of milliseconds since January 1, 1970 00:00:00, Universal Coordinated Time (GMT).
  575.  
  576. The arameters are: 
  577.  
  578.  
  579.  
  580. ΓÇóyear - a year after 1900 
  581. ΓÇómonth - a month between 0-11 
  582. ΓÇódate - day of the month between 1-31 
  583. ΓÇóhrs - hours between 0-23 
  584. ΓÇómin - minutes between 0-59 
  585. ΓÇósec - seconds between 0-59 
  586.  
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593. UTC is a static method of Date.  That means that you always use it as
  594. Date.UTC(), rather than as a method of a date object you created.
  595.  
  596.  
  597.  
  598.  
  599.  
  600. Applies to
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607. Date
  608.  
  609.  
  610.  
  611.  
  612.  
  613. Examples
  614.  
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621. The following statement creates a date object using GMT instead of local time:
  622.  
  623.  
  624. gmtDate = new Date(Date.UTC(96, 11, 1, 0, 0, 0))
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632. See also
  633.  
  634.  
  635.  
  636.  
  637. parse method
  638.  
  639.  
  640.  
  641. ------------------------------------------------------------------------
  642.  
  643.  
  644.  
  645.  
  646.  
  647. write method
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655. Write HTML to the current window, in sequence with the HTML containing this SCRIPT. SCRIPTs have no effect on paragraphs or other structures in which they may occur.
  656.  
  657.  
  658.  
  659.  
  660.  
  661. Syntax
  662.  
  663.  
  664.  
  665.  
  666. write()
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673. Description
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680. xxx Description to be supplied.
  681.  
  682.  
  683.  
  684.  
  685.  
  686. Applies to
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693. document
  694.  
  695.  
  696.  
  697.  
  698.  
  699. Examples
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706. xxx Examples to be supplied.
  707.  
  708.  
  709.  
  710.  
  711.  
  712. See also
  713.  
  714.  
  715.  
  716.  
  717. writeln method
  718.  
  719.  
  720. ------------------------------------------------------------------------
  721.  
  722.  
  723.  
  724.  
  725.  
  726. writeln method
  727.  
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734. The same as write(), but adds a newline character. Note that this affects only preformatted text (inside a <PRE>or <XMP>tag).
  735.  
  736.  
  737.  
  738.  
  739.  
  740. Syntax
  741.  
  742.  
  743.  
  744.  
  745. writeln()
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752. Description
  753.  
  754.  
  755.  
  756.  
  757.  
  758.  
  759. xxx Description to be supplied.
  760.  
  761.  
  762.  
  763.  
  764.  
  765. Applies to
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772. document
  773.  
  774.  
  775.  
  776.  
  777.  
  778. Examples
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785. xxx Examples to be supplied.
  786.  
  787.  
  788.  
  789.  
  790.  
  791. See also
  792.  
  793.  
  794.  
  795.  
  796.  
  797. write method
  798.  
  799.  
  800.  
  801.